<?php
/**
 * Class Site represents the displayable site.
 */
class Site extends Smarty {
	
	/**
	 * Constructor. Initiates variables.
	 *
	 * @param String $pageTitle
	 */
	function __construct( $pageTitle ) {
		$this->Smarty();
		
		$this->template_dir = TEMPLATE_DIR;
		$this->compile_dir = SMARTY_COMPILE_DIR;
		$this->cache_dir = SMARTY_CACHE_DIR;
		$this->config_dir = SMARTY_CONFIG_DIR;
		
		$this->assign( 'pageTitle', $pageTitle );
		
		$this->assign( 'siteUrl', SITE_URL );
		$this->assign( 'templateUrl', TEMPLATE_URL );
	}
	
}
?>